<div class="data-input">
    <fieldset>
        <legend><?php echo "$formTitle";?></legend>
        <?php
          foreach ($dataInput as $row);
          echo form_open($subLink,'');
        ?>
        <label>Nama</label><?php echo form_input('nama',$row['nama'],'id=nama');?>
        <label>Jenis</label>
        <select name="jenis" id="jenis">
            <option value="">Pilih jenis kriteria</option>
            <option value="Cost" <?php if($row['jenis'] == 'Cost') echo 'selected=selected';?>>Cost</option>
            <option value="Benefit" <?php if($row['jenis'] == 'Benefit') echo 'selected=selected';?>>Benefit</option>
        </select>
        <fieldset class="input-process">
               <?php
                  echo form_hidden('id', $row['id']);
                  echo form_submit('add', 'Simpan', 'class=button style=margin-right:2px');
                  echo form_button('Batal', 'Batal', 'class=button onClick='."javascript:location.href='".base_url()."index.php/kriteria/'".'');
                ?>
        </fieldset>
        <?php
          echo form_close();
        ?>
    </fieldset>
</div>
